import {createApp} from 'vue'
import pinia from '@/store'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css' // 引入 Element Plus 样式
import '@/styles/global.scss' // 引入全局样式
import * as ElementPlusIconsVue from '@element-plus/icons-vue' // 引入所有图标
import '@/permisstion.ts';

const app = createApp(App)
app.use(pinia)

// 全局注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router)
app.use(ElementPlus)
app.mount('#app')